

package com.hazelcast.internal.monitor;

import com.hazelcast.cluster.ClusterState;
import com.hazelcast.json.internal.JsonSerializable;
import com.hazelcast.version.MemberVersion;
import com.hazelcast.version.Version;

/**
 * Local node statistics to be used by {@link MemberState} implementations.
 */
public interface NodeState extends JsonSerializable {

    /**
     * @return the current node state (status)
     */
    ClusterState getClusterState();

    /**
     * @return the current node state (status)
     */
    com.hazelcast.instance.impl.NodeState getNodeState();

    /**
     * @return the current version of the Cluster
     */
    Version getClusterVersion();

    /**
     * @return the codebase version of the Node
     */
    MemberVersion getMemberVersion();

}
